package com.kx.smartdevice.service;

import com.github.pagehelper.PageInfo;
import com.kx.smartdevice.pojo.Area;

import java.util.List;

/**
 * @ClassName AreaService
 * @Author Sun
 * @Date 2021/5/29 16:07
 */
public interface AreaService {

   PageInfo<Area> findAllAreaByPage(int pageNum, int pageSize, String areaname, int status);


   void addAreas(Area area);

    int updateArea(Area area);

    int deleteAreaByIds(String[] ids);

    Area getAreaById(Long id);

    List<Area> getAreaByParentId(Long id);

    List<Area> getAllFirstParentAreas(int status);
}
